# -*- coding: utf-8 -*-
import scrapy
import re


class TestSpider(scrapy.Spider):
    name = 'test'
    allowed_domains = ['http://www.chictr.org.cn']
    start_urls = [
        'http://www.chictr.org.cn/searchproj.aspx?title=&officialname=&subjectid=&secondaryid=&applier=&studyleader=&ethicalcommitteesanction=&sponsor=&studyailment=&studyailmentcode=&studytype=0&studystage=0&studydesign=0&minstudyexecutetime=&maxstudyexecutetime=&recruitmentstatus=0&gender=0&agreetosign=&secsponsor=&regno=&regstatus=0&country=&province=&city=&institution=&institutionlevel=&measure=&intercode=&sourceofspends=&createyear=0&isuploadrf=&whetherpublic=&btngo=btn&verifycode=&page=1']

    def parse(self, response):
        print(response.text)
        print(response.request)
        print(response.headers)
